## if then elsif else 
puts "Please input number 0 or 1 for instruct operaction";
inputData1 = gets().to_i;
puts "Please again input number 0 or 1 for instruct operaction";
inputData2 = gets().to_i;

# if inputData1 == 1 then inputData2 = inputData2.to_i + 100 end
# puts inputData2.to_i + 100;
########################### if elsif else then ####################################

print "I'm input imformation:",inputData1 + inputData2,"\n"
print "*********************************************","\n"
if inputData1 == 0 then puts "hello world!" end;
if inputData1 == 0 and inputData2 == 0 
    print ["you information of input:",inputData1,inputData2].join(" ")
elsif inputData1 == 0 and inputData2 == 1 
    puts "you information of input:",inputData1,inputData2
elsif inputData1 == 1 and inputData2 == 0
    puts "you information of input:",inputData1,inputData2
elsif inputData1 == 1 and inputData2 == 1
    puts "you information of input:",inputData1,inputData2
else puts "impossible!impossible!,Absolutely impossible!" 
end

###########################  unless ####################################
unless inputData1 != 0 then puts "false"
else puts "true"
end
###########################　unless 修飾符 #############################
$test = 0; # 0也是真值
print "1----------------coffee\n" if $test
print "2----------------tea\n" unless $test
$test = true;
print "3----------------cheese\n" if $test
########################## case when else ##############################
case inputData1
when 0
    puts "I have "+inputData1.to_s+" apple. "+ "This is "+true.to_s+"!"
when 1
    puts "I have"+inputData1.to_s+"banana"
when 2
    puts "I have"+inputData1.to_s+"strawberry"
else
    puts "no fruits!"
end

###########################  continue ####################################
